package com.daedalus.Inheritanca.PersonTaksa;

/**
 * Created with IntelliJ IDEA.
 * User: kostika
 * Date: 12/19/12
 * Time: 10:42 AM
 * To change this template use File | Settings | File Templates.
 */
public class Person {
    private String emer;
    private String mbiemer;
    private int mosha;
    private String vendLindja;
    private char gjinia;

    private double teArdhurat;
    private double perqindjaTaksave;

    public Person(String emer, String mbiemer, int mosha, String vendLindja, char gjinia, double teArdhurat, double perqindjaTaksave) {
        this.setEmer(emer);
        this.setMbiemer(mbiemer);
        this.setMosha(mosha);
        this.setVendLindja(vendLindja);
        this.setGjinia(gjinia);
        this.setTeArdhurat(teArdhurat);
        this.setPerqindjaTaksave(perqindjaTaksave);
    }

    public Person(String emer, String mbiemer, int mosha, String vendLindja, char gjinia, double teArdhurat) {
        this(emer, mbiemer, mosha, vendLindja, gjinia, teArdhurat,0.1);
    }


    public String getEmer() {
        return emer;
    }

    public void setEmer(String emer) {
        this.emer = emer;
    }

    public String getMbiemer() {
        return mbiemer;
    }

    public void setMbiemer(String mbiemer) {
        this.mbiemer = mbiemer;
    }

    public int getMosha() {
        return mosha;
    }

    public void setMosha(int mosha) {
        this.mosha = mosha;
    }

    public String getVendLindja() {
        return vendLindja;
    }

    public void setVendLindja(String vendLindja) {
        this.vendLindja = vendLindja;
    }

    public char getGjinia() {
        return gjinia;
    }

    public void setGjinia(char gjinia) {
        this.gjinia = gjinia;
    }

    public double getTeArdhurat() {
        return teArdhurat;
    }

    public void setTeArdhurat(double teArdhurat) {
        this.teArdhurat = teArdhurat;
    }

    public double getPerqindjaTaksave() {
        return perqindjaTaksave;
    }

    public void setPerqindjaTaksave(double perqindjaTaksave) {
        this.perqindjaTaksave = perqindjaTaksave;
    }

    public double llogaritTaksat(){
        return teArdhurat*perqindjaTaksave;
    }

    public String toString(){
        return String.format("Emri: %s\nMbiemri: %s\nTe Ardhurat: %.2f\nTaksat: %.2f\n" +
                "Mosha: %d\nVendlindja: %s\nGjinia: %c\n",
                getEmer(),getMbiemer(),getTeArdhurat(),llogaritTaksat(),getMosha(),getVendLindja(),getGjinia());
    }
}
